﻿using System;
using System.Collections.Generic;

namespace RapidRepository.Cache
{
    /// <summary>
    /// Type cache.
    /// </summary>
    internal class TypeCache
    {
        /// <summary>
        /// Gets or sets the type of the entity.
        /// </summary>
        /// <value>The type of the entity.</value>
        public Type EntityType { get; set; }

        /// <summary>
        /// Gets or sets the entities.
        /// </summary>
        /// <value>The entities.</value>
        public List<CachedEntity> Entities { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is dirty.
        /// </summary>
        /// <value><c>true</c> if this instance is dirty; otherwise, <c>false</c>.</value>
        public bool IsDirty { get; set; }
    }
}
